﻿<link href="@Url.Content("~/content/activitie_detail.css")" rel="stylesheet" type="text/css"/>
<link href="@Url.Content("~/content/table_btn.css")" rel="stylesheet" type="text/css"/>

<!--[if lt IE 8]>
    <link href="@Url.Content("~/content/activitie_create.css")" rel="stylesheet" type="text/css"/>
<![endif]-->

<noscript>
    <link href="@Url.Content("~/content/activitie_create.css")" rel="stylesheet" type="text/css"/>
    <link href="@Url.Content("~/content/activitie_noscript.css")" rel="stylesheet" type="text/css"/>
</noscript>

@model PessMvc.Models.ArchiveGradeModel

@{
    ViewBag.Title = "Grade"; 
    }
<h2>评分</h2>
<div id="operate">    @Html.ActionLink("返回", "Index", new { activityID = Model.ActivityID, archiveID = Model.Archive.ID }, null)
</div>
<div style="width:782px;float:left;padding-top:2px;padding-right:0px;padding-left:0px;clear:both;margin-top:-45px;overflow:hidden;">
    <object data=@Url.Action("GetPDF", new { archiveID=Model.Archive.ID}) type="application/pdf" style="width:99%;height:850px;">
        alt : <a href="http://down.tech.sina.com.cn/download/d_load.php?d_id=8255&down_id=1&ip=61.170.136.41">下载PDF阅读器。</a>
    </object>
</div>
<fieldset class="edit" style="width:190px;float:right;clear:none;padding-top:0px;padding-right:5px;padding-left:5px;margin-left:0px;margin-right:0px">
    <legend style="font-size:14px;">档案编号：@ViewBag.SerialNumber</legend>
@using(Html.BeginForm("Grade","Archive",FormMethod.Post)){
    @Html.Hidden("ArchiveID",Model.Archive.ID)
    @Html.ValidationSummary(true)
    <div class="displayConScroe">
        <table style="width:188px;">
            <tr>
                <th>名称</th>
                @*<th>说明</th>*@
                <th>分值</th>
                <th></th>
            </tr>
            @{var scoreList=Model.Scores.ToList();}
            @for (int i = 0; i < scoreList.Count(); i++)
            {
                <tr style="text-align:center;">
                    <td style="width:90px" alt="@scoreList[i].Description" title="@scoreList[i].Description">@scoreList[i].Name</td>
                    @*<th>@scoreList[i].Description</th>*@
                    <td style="width:48px">@scoreList[i].Value</td>
                    <td style="width:48px">
                        @Html.Hidden("scoreList["+i+"].ID",scoreList[i].ID)
                        @Html.Hidden("scoreList["+i+"].ArchiveID",Model.Archive.ID)
                        @Html.TextBox("scoreList[" + i + "].ScoreValue", (object)scoreList[i].ScoreValue == null ? 0 : (decimal)scoreList[i].ScoreValue, new { style="width:40px"}) </td>
                </tr>
            }
        </table>
        <p>指标1和2的总分在10分以上为通过；
指标3的分值为1表示通过，0表示不通过。</p>
    </div>
    <div style="text-align:center">
        @Html.TextArea("Comment",new { style="width:188px;height:240px;margin-top:5px;margin-bottom:8px;"})
    </div>
    <div class="editor-btn-inLine downM" style="padding-left:32px;padding-right:8px;"><input type="submit" value="保存" class="asBtn" /> </div>
}

<div class="editor-btn-inLine downM">@using(Html.BeginForm("DeleteScores2","Score",FormMethod.Post))
{
    @Html.Hidden("ArchiveID",Model.Archive.ID)
    <input type="submit" value="删除分数" class="asBtn" />
}</div>

</fieldset>

<div style="clear:both;"></div>